/*      All code produced by the American Heritage School Robotics Team,
 *      The Ninjineers (#2383), for the 2013 FRC Season.
 */

package tk.ninjineers2383.y2013.Components;
import edu.wpi.first.wpilibj.Victor;

public class Climber 
{
    final int CLIMB_DIRECTION = 1;    //-1 to reverse
    final int HOOK_DIRECTION = 1;     //-1 to reverse
    private Victor motor;
    private Victor hooks;
    
    public Climber(int motor_channel, int hook_channel)
    {
        motor = new Victor(motor_channel);
        hooks = new Victor(hook_channel);
    }
    
    public void ascend()
    {
        motor.set(CLIMB_DIRECTION);
    }
    
    public void descend()
    {
        motor.set(CLIMB_DIRECTION*(-1));
    }
    
    public void stop()
    {
        motor.set(0);
    }
    
    public void hookEngage()
    {
        hooks.set(HOOK_DIRECTION*0.5);
    }
    
    public void hookDisengage()
    {
        hooks.set(HOOK_DIRECTION*-0.5);
    }
    
    public void hookStop()
    {
        hooks.set(0);
    }
}
